from django.contrib import admin
from django.urls import path

from rest_framework.routers import SimpleRouter

from patient.views import SourceView, AppointmentView, PatientView,download_patient_data,TriageView,BookingView,download_appointment_data

urlpatterns = [
    path('download_patient_data/', download_patient_data, name='download_patient_data'),
    path('download_appointment_data/', download_appointment_data, name='download_appointment_data'),

]

router = SimpleRouter()

router.register('source', SourceView)
router.register('appointment', AppointmentView)
router.register('patient', PatientView)
router.register('triage', TriageView)
router.register('booking', BookingView)

urlpatterns += router.urls
